MoreExam
1. Question Content...
EXPLANATION
Answer: X - EXPLANATION Content.
Question1: You created a custom page on the storefront and you have to render the price for a given product instance which is available in the $product variable. How do you render the price in a phtml template?A)B)C)D)
Question2: You are working on a project which uses Staging for different entities. You are considering the option to stage and rollback different entities independently. What is the scope of a Staging version in Magento?
Question3: You are writing a new method for retrieving the level of the category in a category tree by its ID. You have a select query:With the Staging functionality enabled, the returned category level value changes over time while the category tree stays the same. How do you fix this issue?
Question4: You are working on a project with custom code located in an observer MyCompany\MyModule\Observer\Custom on the catalog_product_load_before event. How do you prevent your custom observer from being executed on a staging preview?
Question5: A client running Elasticsearch would like products only matching ALL search terms to show on the frontend of the website. How do you do this?
Question6: A merchant is planning to create a single scheduled update for one million products. They are wondering about website performance. What two performance issues will the update cause?
Question7: You have created a new gateway payment method. You configured the command pool in a di. xml file and added the MyCompany\MyModule\Gateway\Command\Sale command with the name sale to it. Your Sale command extends the Magento\Payment\Gateway\Command\GatewayCommand class.You have also created a payment_action option in the system configuration and set the value to authorize_capture.You found the sale command is never called when placing an order.Which action will fix the problem?
Question8: You are developing an in-house solution for catalog management which is implemented as a Magento module called MyCompany_MyModule. To streamline integration with the ERP system you decided to expose MyCompany_MyModule'S functionality via REST.What are the three minimum requirements to achieve this?
Question9: You want to run a script each time after all schema installation and schema upgrade scripts have executed, but before data setup scripts execution. What do you do?
Question10: You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table.How can we create this behavior during the creation of this attribute?A)B)C)D)
Question11: A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products. So what should the approach to cache the block data as per pagination request:
Question12: You are implementing a custom module MyCompany_MyModule which displays a new link in the Action column in the Orders grid. The purpose of this link is to synchronize the order summary data with an ERP system. You must make permissions to use this link manageable with the Magento ACL.Which two steps are required to do this?
Question13: Suppose you want to develope a custom extension that should provide product_redirect_links to amazon.com, ebay.com and other sites. Suppose this must be added using extension_attribute feature to make that availbe for product repository and services, then what are the customizations needed to develope it: Choose 2
Question14: Suppose there are 3 classes: Class A, B and C. Class C have dependecy of Class A You need to overrride/change an argument of class A, create an object of it and inject in Class B in such a way that it should not affect the class C. What should be the magento standard way to do this:
Question15: You are working on a module MyCompany_MyModule which adds a select attribute with a few options using the \Magento\Eav\Setup\EavSetup: :addAttribute() method in data in data install script.There is no uninstall script. While debugging, you have uninstalled the module with the command:bin magento module:uninstall MyCompany_MyModuleThen you reinstalled the module. What will be the effect on the attribute?
Question16: A merchant has created a segment that applies to registered customers whose gender is female. You then migrate customers by copying data directly from one database to another. What two ways are used to assign migrated customers with a female gender to the segment?
Question17: After the installation of several 3rd-party extensions to the merchant's store, it was noticed the admin panel authentication consistently fails with the credentials used before. Where do you start debugging to understand why the authentication is failing?
Question18: To prevent Cross Site Scripting (XSS) attacks, Magento templates use different methods to escape the output on the website before displaying it to the user. What three methods does Magento use to prevent this kind of attack?
Question19: You need to do an analysis of Admin actions on the website for a 24 hour period that happened 90 days ago using the Admin actions log. Assuming that the Log Entry Lifetime store configuration setting has not been changed from the default, where do you access the data?
Question20: You want to add an additional validation rule, allowed_symbols, to the telephone field on the Checkout Address form. You have created the validation rule and added it to the Magento_Ui/js/lib validation validator instance.What action is required to complete the task?
Question21: Magento can load the configuration file di.xml area-specific. During bootstrapping, each application entry point loads the appropriate di.xml files for the requested area. Please select the set of correct areas, where this file can be loaded by Magento:
Question22: Your company asks you to create the option to disable RMA for the customer group named CustomerGroup1. How do you do it?A) It will require a code customizationB) This feature already exists and can be set in:Admin > Store > Settings > Configuration > Sales > Rma Settings > Exclude Customer GroupC)D)
Question23: In a phtml, you added script tag and defined couple of js variables as below:Now to protect it from XSS attacks, which two methods allow you to keep the php variable output XSS-safe?Choose 2
Question24: You are reviewing a custom observer for the event sales_order_save_after which is fired when an order is placed on the storefront. The observer is sending a remote request to an analytics system with the order data.What issue may this observer cause?
Question25: You have created a module MyCompany_MyModule that adds a custom category attribute. The attribute is not showing up on the Category Edit Page in the Admin. How do you correct this?
Question26: Suppose you are tasked with update a product price to 10% more and it's cart rule to provide 5% discount after 2 month. So after this timeperiod, product price and cart rule must be activated workign in the frontend for users. Which Magento feature you should use to do the above task?
Question27: You want to display customized product list along with it's tier prices. To render this price which class should be used and which data needs to be provided ?
Question28: While debugging a problem with a scheduled product update, you want to get a list of products that are scheduled for the next update. How does Magento Staging store scheduled entities?
Question29: OrangeCompany decided to build a REST API based module in the application so that he can share the details of best-selling products to his franchisee. To make it's flexible and customizable in the future, he advised his developers to enable the support of extension_attribute in the API interface so that any new attributes can be added when required. What is the way to enable the entity/interface to support extension attributes in the module?
Question30: Suppose you need to add an admin grid using uiComponent. if page URL ends with banners/index/index, then which basic uiComponent you would use and what should be the page layout file:
Question31: For an existing core class, you created 3 plugins PluginA, PluginB and PluginC with sort orders 10, 20 and 30 respectively. but when implementing pluginB you used around method and did not used callable in it.What should be the plugins executaion order as per above scenerio: